package com.csun.cmny.provider.model.domain;

import com.csun.cmny.core.mybatis.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.Alias;

import javax.persistence.*;
import java.util.Date;

@Data
@Alias(value = "dmcWatchDataSleep")
@Table(name = "cn_dmc_watch_data_sleep")
@EqualsAndHashCode(callSuper = true)
public class DmcWatchDataSleep extends BaseEntity {

    private static final long serialVersionUID = -7352919712195621829L;

    /**
     * 设备Id
     */
    @Column(name = "device_id")
    private Long deviceId;

    /**
     * 睡眠结束时间 eg:201612170730
     */
    @Column(name = "sleep_start")
    private String sleepStart;

    /**
     * 睡眠结束时间 eg:201612170730
     */
    @Column(name = "sleep_end")
    private String sleepEnd;

    /**
     * 深睡时长 eg:0210
     */
    @Column(name = "sleep_deep")
    private String sleepDeep;

    /**
     * 浅睡时长 eg:0550
     */
    @Column(name = "sleep_light")
    private String sleepLight;

    /**
     * 睡眠总时长，前两位小时，后两位分钟
     */
    @Column(name = "sleep_total")
    private String sleepTotal;

    /**
     * 睡眠日期
     */
    @Column(name = "sleep_date")
    private String sleepDate;

}